//
//  Overload_typecast.cpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/6.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "Overload_typecast.hpp"

CentsFour::CentsFour(int value){
    m_cents = value;
}

void CentsFour::printInt(int value){
    std::cout << value << std::endl;
}

void printCents(CentsFour cents)
{
    std::cout << cents; // cents will be implicitly cast to an int here
}
